home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / PROGSCAL / TBUTIL2.LZH / GETFREE.INC < prev    next >
Text File  |  1984-07-13  |  1KB  |  27 lines

  1.  
  2. PROCEDURE get_free_space(VAR free_clusters,total_clusters,
  3.                              cluster_size ;
  4.                              drive :BYTE);
  5.  
  6. BEGIN
  7.  
  8.    INLINE
  9.    (  $8a/$56/$04/           {   mov dl,[bp+04]  load DL with drive num}
  10.       $b4/$36/               {   mov ah,36 }
  11.       $cd/$21/               {   int 21h         dos interupt type 36 }
  12.       $89/$d9/               {   mov cx,bx       put bx in cx }
  13.       $1e/                   {   push DS         save DS}
  14.       $8b/$5e/$0e/           {   mov bx,[bp+0e]  load offset free_clusters}
  15.       $85/$5e/$10/           {   mov ds,[bp+10]  load segment free_clusters}
  16.       $89/$0f/               {   mov [bx],cx     put cx into free_clusters}
  17.       $8b/$5e/$0a/           {   mov bx,[bp+0a]  load offset total_clusters}
  18.       $85/$5e/$0c/           {   mov ds,[bp+0c]  load segment total_clusters}
  19.       $89/$17/               {   mov [bx],dx     put dx into total_clusters}
  20.       $8b/$5e/$06/           {   mov bx,[bp+06]  load offset cluster_size}
  21.       $85/$5e/$08/           {   mov ds,[bp+08]  load segment cluster_size}
  22.       $89/$07/               {   mov [bx],ax     put ax into cluster_size}
  23.       $1f                    {   pop DS          restore DS}
  24.       )
  25. END;
  26.  
  27.